package cn.tiancaifan.micro.controller.system.basic;


import cn.tiancaifan.micro.entity.SystemResults;
import cn.tiancaifan.micro.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/basic/role")
public class RoleController {

    @Autowired
    RoleService roleService;

    @GetMapping("/")
    public SystemResults getAllRoles(){
        return  SystemResults.ok(null,roleService.getAllRoles());
    }

}
